package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

//创建service
public interface OrderService extends IService<OrderInfo> {
    //创建订单
    Long submitOrder(String scheduleId, Long patientId);
    //分页列表
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);
    //根据订单id查询订单详情
    OrderInfo getOrderById(Long orderId);
    //取消预约
    Boolean cancelOrder(Long orderId);
    //就诊提醒
    void patientTips();
    //获取订单统计数据
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}